<template>
  <!-- 支持文件切片上传 - 根据文件大小判断是否进行文件的切片上传 -->
  <div class="upload-file">
    <van-field name="uploader" label="文件上传">
      <template #input>
        <van-uploader v-model="value" />
      </template>
    </van-field>
  </div>
</template>

<script setup>
import { ref } from 'vue';

const value = ref([
  { url: 'https://fastly.jsdelivr.net/npm/@vant/assets/leaf.jpeg' },
]);
</script>

<style lang="scss" scoped></style>